/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.facade;

/**
 * 家庭影院门面类
 * 
 * @author aeky
 */
public class HomeTheaterFacade {

    private DvdPlayer dvdPlayer;

    private Light light;

    private TvPlayer tvPlayer;

    public HomeTheaterFacade(DvdPlayer dvdPlayer, Light light, TvPlayer tvPlayer) {
        this.dvdPlayer = dvdPlayer;
        this.light = light;
        this.tvPlayer = tvPlayer;
    }

    /**
     * 开始看电影
     */
    public void watchMovie() {
        dvdPlayer.dvdOn();
        tvPlayer.tvOn();
        light.lightDown();
    }

    /**
     * 结束看电影
     */
    public void endMovie() {
        dvdPlayer.dvdOff();
        tvPlayer.tvOff();
        light.lightUp();
    }
}
